/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package DAL;

/**
 *
 * @author Pasha
 */
public class CarException{}

class NotFuelException extends Exception
{
    public NotFuelException(String name)
    {
        super(String.format("Not fuel in " + name + "\n"));
    }
}


class PunchedWheelException extends Exception
{
    public PunchedWheelException(String name)
    {
        super(String.format("Punched wheel in " + name + "\n"));
    }
}

class NoPedalException extends Exception
{
    public NoPedalException(String name)
    {
        super(String.format("No pedal in " + name + "\n"));
    }
}

class NoDriverException extends Exception
{
    public NoDriverException(String name)
    {
        super(String.format("No driver in " + name + "\n"));
    }
}